import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import VueAxiosPlugin from 'vue-axios-plugin'
import "../public/assets/font/iconfont.css"; //本地引入
import { Swipe, SwipeItem } from 'vant';
import { Tab, Tabs,Toast } from 'vant';
import { Empty } from 'vant';
import { Button } from 'vant';

Vue.use(Button);
Vue.use(Tab).use(Tabs).use(Swipe).use(SwipeItem).use(Toast).use(Empty);
Vue.use(VueAxiosPlugin, {
  // 请求拦截处理
  reqHandleFunc: config => config,
  reqErrorFunc: error => Promise.reject(error),
  // 响应拦截处理
  resHandleFunc: response => response,
  resErrorFunc: error => Promise.reject(error)
})

Vue.config.productionTip = false
// Vue.use(Button);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
